<table cellpadding="0" cellspacing="0" border="0" width="100%" class="zebra com_list">
	<?php 
		$adc->loadAdSearch();
		if($adc->getAdSearch())
		{
			$out  = '';
			$header  = '<tr>';
			//$header .= '<th class="first left">'.ucfirst($txt->getWord('type')).' / '.ucfirst($txt->getWord('category')).' / '.ucfirst($txt->getWord('brand')).'</th>';
			$header .= '<th class="first left">'.ucfirst($txt->getWord('title')).'</th>';
			$header .= '<th class="left">'.ucfirst($txt->getWord('date').' '.$txt->getWord('created')).'</th>';
			$header .= '<th class="left">'.ucfirst($txt->getWord('date').' '.$txt->getWord('sent')).'</th>';
			$header .= '<th class="left">'.ucfirst($txt->getWord('status')).'&nbsp;&nbsp;</th>';
			$header .= '<th class="last left">'.ucfirst($txt->getWord('edit')).'&nbsp;&nbsp;</th>';
			$header .= '</tr>'
			?>
			
				<thead class="fields">
					<tr>
						<th colspan="5" class="first left bold"><h3 class="section-title"><?php echo ucfirst($txt->getWord('new_ads_from_this_search_sent_to')).': '.$user->getEmail(); ?></h3></th>
					</tr>
					<?php echo $header; ?>
				</thead>
				<tbody>
				<?php
				foreach($adc->getAdSearch() as $item)
				{
					if($item->getActive() == 1)
					{ require('forms/list-item.php'); }
				}
				?>
				</tbody>
				<tfoot>
					<tr>
						<td colspan="5"><hr /></td>
					</tr>
				</tfoot>
				<thead class="fields">
					<tr>
						<th colspan="5" class="first left bold"><h3 class="section-title"><?php echo ucfirst($txt->getWord('my_searches')); ?></h3></th>
					</tr>
					<?php echo $header; ?>
				</thead>
				<tbody>
				<?php
				foreach($adc->getAdSearch() as $item)
				{
					if($item->getActive() == 0)
					{ require('forms/list-item.php'); }
				}
				?>
				</tbody>
				<tfoot>
					<tr>
						<td colspan="6"><hr /></td>
					</tr>
				</tfoot>
			<?php
		}
		else
		{
			$out  = '<tr class="items">';
			$out .= 	'<td class="first">'.ucfirst($txt->getWord('no_items')).'</td>';
			$out .= 	'<td></td>';
			$out .= 	'<td>&nbsp;</td>';
			$out .= 	'<td>&nbsp;</td>';
			$out .= 	'<td>&nbsp;</td>';
			$out .= 	'<td class="last center">&nbsp;</td>';
			$out .= '</tr>';
		}
		echo $out;
		?>
</table>